<ui:composition template="/WEB-INF/template/padrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="title">Gerencia de Permissões</ui:define>
	<ui:define name="corpo">

		<h:form id="form">
			<p:messages id="error" showDetail="true" autoUpdate="true" closable="true" />

			<p:outputLabel value="Username: #{userMB.selectedUser.username}"></p:outputLabel>
			
			<p:dataTable id="autorizacao" value="#{userMB.selectedUser.autorizacoes}" var="a"	border="1" cellpadding="10">
				
				<p:column headerText="Autorizações Atuais do Usuário">
					<h:outputText value="#{a.autorizacao}" />
				</p:column>
			</p:dataTable>
			
			<p:dataTable id="radioDT" value="#{autorizacaoMB.aut}" var="aut"	border="1" cellpadding="10">
				
				<p:column headerText="Autorizações do Sistema">
					<h:outputText value="#{aut.autorizacao}" />
				</p:column>
			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>